const initState = {
    loginInfo: {
        curPage: "",
        curName: "",
        subPage: null,
        prtPage: null,
        userName: "",
        userRole: "",
        loginID: "",
        errorInfo: "",
    }
}

const rootReducer = (state = initState, action) => {
    if(action.type === 'page_query_action') {
        return {
            ...state,
            loginInfo: action.loginInfo
        }
    }
    return state
}

export default rootReducer;
